package org.example.seat_management.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.seat_management.Entity.SeatConfig;

import java.util.List;

@Mapper
public interface SeatConfigMapper {
    int insert(SeatConfig entity);
    int update(SeatConfig entity);
    int upsert(SeatConfig entity);
    SeatConfig findActiveByClassroom(@Param("classroomId") Long classroomId);
    List<SeatConfig> findByClassroom(@Param("classroomId") Long classroomId);
}


